Type.registerNamespace("AjaxLab.Engine.Plugins");
AjaxLab.Engine.Plugins.BaseCommands= function()
{
	//var command_delegate = Function.createDelegate(this,this.processCommands);
	var mydelegate = Function.createDelegate(this,this.processCommands);
	//this.mydelegate = Function.createDelegate(this,this.processCommands);
	
	this.returnCommandDelegate			=    function()
	{
		/* works */
		//return this.processCommands;
		return Function.createDelegate(this,this.processCommands);
		
		/* doesn't work */
		
		//return mydelegate(); 
		//return mydelegate;  
	
		//this.mydelegate("test");
	}
	
	this.processCommands = function(valueParam) {
        return "base command returned"+valueParam;
    }
}
AjaxLab.Engine.Plugins.BaseCommands.registerClass('AjaxLab.Engine.Plugins.BaseCommands');

